<script setup lang="ts">
import { instance as request } from '@/utils/request';

// 要想发起一个错误的请求，把token改一下
const getUserInfo = async () => {
  const res = request.get('https://consult-api.itheima.net/patient/myUser');
};
</script>

<template>
  <div>测试用路由</div>
  <button @click="getUserInfo">发起一个token过期的请求</button>
</template>

<style lang="scss" scoped></style>
